(ns scripts.cljmon.utils
  (:use scripts.cljmon.query))

;;; ps

(defn ps [{:keys [queries pollrate pdh? winapi?]}] ; TODO: support remote
  (run-in-new-query-session {:pdh? pdh? :winapi? winapi?}
    (doseq [comment (collect-local-comments (translate-local-queries (filter #(= (:type %) :process-info) queries)))]
      (println comment))))

